package com.byxy.ssm.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.byxy.ssm.mapper.ForumMapper;
import com.byxy.ssm.pojo.Forum;
import com.byxy.ssm.service.ForumService;
@Service
@Transactional
public class ForumServiceImpl implements ForumService{

	@Resource 
	private ForumMapper forumMapper;
	@Override
	public int delete(Integer forumId) {
		// TODO Auto-generated method stub
		return forumMapper.delete(forumId);
	}

	@Override
	public int insert(Forum forum) {
		// TODO Auto-generated method stub
		return forumMapper.insert(forum);
	}

	@Override
	public Forum getById(Integer forumId) {
		// TODO Auto-generated method stub
		return forumMapper.getById(forumId);
	}

	@Override
	public List<Forum> findAll() {
		// TODO Auto-generated method stub
		return forumMapper.findAll();
	}

	@Override
	public int update(Forum forum) {
		// TODO Auto-generated method stub
		return forumMapper.update(forum);
	}
}
